<?php
// ====================================================
// filename:wl005_display.php
// summary: 用户详情画面_画面显示
// ====================================================
require_once ("../init.php");
if (! isset($_SESSION['wl_uid'])) {
    echo json_encode(array(
        'success' => false,
        'msg' => "登陆信息已过期，请重新登陆！"
    ));
    exit();
}

php_handle();
// 详细业务处理
function php_handle()
{
    // ======参数验证======
    $uid = $_SESSION['wl_uid'];
    
    // ======业务处理======
    $wlu02 = new wlu02tbx();
    $u02res = $wlu02->sel_wlu02tbx_by_key($uid);
    if (count($u02res) == 0) {
        echo json_encode(array(
            'success' => false,
            'msg' => "输入的旧密码有误"
        ));
        return;
    }
    
    // ======结果返回======
    echo json_encode(array(
        'success' => true,
        'data' => $u02res[0]
    ));
    return;
}

?>